package com.crx.springbootinit.model.vo.user;

import com.crx.springbootinit.model.dto.page.PageVO;
import com.crx.springbootinit.model.vo.post.PostHomeVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "个人主页信息")
public class UserAndPostInfo {

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "用户ID")
    private Long id;

    @ApiModelProperty(value = "头像URL")
    private String avatar;

    @ApiModelProperty(value = "简介")
    private String bio;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "年龄")
    private int age;

    @ApiModelProperty(value = "生日")
    private LocalDate birthDate;

    @ApiModelProperty(value = "星座")
    private String constellation;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "动态数")
    private Long postCount;

    @ApiModelProperty(value = "关注数")
    private Long followCount;

    @ApiModelProperty(value = "粉丝数")
    private Long fansCount;

    @ApiModelProperty(value = "获赞与收藏数量")
    private Long loveCollectCount;

    @ApiModelProperty(value = "帖子列表")
    private PageVO<PostHomeVO> postHomeList;
}
